using System.Collections;
using System.Collections.Generic;
using QFramework;
using UnityEngine;

public abstract class GamePlayObject : ViewController
{
    public abstract Collider2D Collider2D { get; }

    void OnBecameVisible()
    {
        Collider2D.enabled = true;
    }

    void OnBecameInvisible()
    {
        Collider2D.enabled = false;
    }
}
